package com.glorysoft.knowlespda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: HomeEntity
 * Author: XJH
 * Date: 2022/7/5 15:27
 * Description:
 * History:
 */
public class HomeEntity implements Serializable {
    private String OPID;
    private String PDANO;
    private String NOTICETYPE;
    private String ISAUTH;
    private List<NoticeEntity> NOTICELIST;

    public String getISAUTH() {
        return ISAUTH == null ? "" : ISAUTH;
    }

    public void setISAUTH(String ISAUTH) {
        this.ISAUTH = ISAUTH;
    }

    public String getOPID() {
        return OPID == null ? "" : OPID;
    }

    public void setOPID(String OPID) {
        this.OPID = OPID;
    }

    public String getPDANO() {
        return PDANO == null ? "" : PDANO;
    }

    public void setPDANO(String PDANO) {
        this.PDANO = PDANO;
    }

    public String getNOTICETYPE() {
        return NOTICETYPE == null ? "" : NOTICETYPE;
    }

    public void setNOTICETYPE(String NOTICETYPE) {
        this.NOTICETYPE = NOTICETYPE;
    }

    public List<NoticeEntity> getNOTICELIST() {
        if (NOTICELIST == null) {
            return new ArrayList<>();
        }
        return NOTICELIST;
    }

    public void setNOTICELIST(List<NoticeEntity> NOTICELIST) {
        this.NOTICELIST = NOTICELIST;
    }

    public static class NoticeEntity implements Serializable{
        private String MACHINEID;
        private String NOTICETYPE;
        private String CREATETIME;
        private String MESSAGE;

        public String getMESSAGE() {
            return MESSAGE == null ? "" : MESSAGE;
        }

        public void setMESSAGE(String MESSAGE) {
            this.MESSAGE = MESSAGE;
        }

        public String getMACHINEID() {
            return MACHINEID == null ? "" : MACHINEID;
        }

        public void setMACHINEID(String MACHINEID) {
            this.MACHINEID = MACHINEID;
        }

        public String getNOTICETYPE() {
            return NOTICETYPE == null ? "" : NOTICETYPE;
        }

        public void setNOTICETYPE(String NOTICETYPE) {
            this.NOTICETYPE = NOTICETYPE;
        }

        public String getCREATETIME() {
            return CREATETIME == null ? "" : CREATETIME;
        }

        public void setCREATETIME(String CREATETIME) {
            this.CREATETIME = CREATETIME;
        }
    }
}
